package com.chenyi.pay.service;

import com.alipay.api.AlipayApiException;
import com.chenyi.pay.bean.AlipayBean;
import com.chenyi.pay.bean.WxpayBean;
import com.chenyi.pay.exception.WxPayApiException;

/**
 * 支付服务
 * @author wangkh
 * @date 2020/10/27 0027  16:33
 */
public interface PayService {
    /* 功能描述: <br>
     * 〈支付宝支付WEB〉
     * @param alipayBean 支付信息
     * @return: java.lang.String
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:32
     */
    String aliPayAsWeb(AlipayBean alipayBean) throws AlipayApiException;

    /* 功能描述: <br>
     * 〈支付宝支付APP〉
     * @param alipayBean 支付信息
     * @return: java.lang.String
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:32
     */
    String aliPayAsApp(AlipayBean alipayBean) throws AlipayApiException;
    /* 功能描述: <br>
     * 〈支付宝支付二维码〉
     * @param alipayBean 支付信息
     * @return: java.lang.String
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:32
     */
    String aliPayAsScan(AlipayBean alipayBean) throws AlipayApiException;
    /* 功能描述: <br>
     * 〈微信支付App〉
     *
     * @param wxpayBean 支付信息
     * @return: java.lang.String
     * @since: 1.0.0
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:37
     */
    String wxPayApp(WxpayBean wxpayBean) throws WxPayApiException;
    /* 功能描述: <br>
     * 〈微信支付小程序〉
     *
     * @param wxpayBean 支付信息
     * @return: java.lang.String
     * @since: 1.0.0
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:37
     */
    String wxPayAsMiniapp(WxpayBean wxpayBean)throws WxPayApiException;
    /* 功能描述: <br>
     * 〈微信扫码支付小程序〉
     *
     * @param wxpayBean 支付信息
     * @return: java.lang.String
     * @since: 1.0.0
     * @Author: wangkh
     * @Date: 2020/10/27 0027 17:37
     */
    String wxPayAsScan(WxpayBean wxpayBean)throws WxPayApiException;
}
